package com.cn.mmd.model;

import java.util.ArrayList;
import java.util.List;

public class IssueExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public IssueExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIssueidIsNull() {
            addCriterion("issueId is null");
            return (Criteria) this;
        }

        public Criteria andIssueidIsNotNull() {
            addCriterion("issueId is not null");
            return (Criteria) this;
        }

        public Criteria andIssueidEqualTo(Integer value) {
            addCriterion("issueId =", value, "issueid");
            return (Criteria) this;
        }

        public Criteria andIssueidNotEqualTo(Integer value) {
            addCriterion("issueId <>", value, "issueid");
            return (Criteria) this;
        }

        public Criteria andIssueidGreaterThan(Integer value) {
            addCriterion("issueId >", value, "issueid");
            return (Criteria) this;
        }

        public Criteria andIssueidGreaterThanOrEqualTo(Integer value) {
            addCriterion("issueId >=", value, "issueid");
            return (Criteria) this;
        }

        public Criteria andIssueidLessThan(Integer value) {
            addCriterion("issueId <", value, "issueid");
            return (Criteria) this;
        }

        public Criteria andIssueidLessThanOrEqualTo(Integer value) {
            addCriterion("issueId <=", value, "issueid");
            return (Criteria) this;
        }

        public Criteria andIssueidIn(List<Integer> values) {
            addCriterion("issueId in", values, "issueid");
            return (Criteria) this;
        }

        public Criteria andIssueidNotIn(List<Integer> values) {
            addCriterion("issueId not in", values, "issueid");
            return (Criteria) this;
        }

        public Criteria andIssueidBetween(Integer value1, Integer value2) {
            addCriterion("issueId between", value1, value2, "issueid");
            return (Criteria) this;
        }

        public Criteria andIssueidNotBetween(Integer value1, Integer value2) {
            addCriterion("issueId not between", value1, value2, "issueid");
            return (Criteria) this;
        }

        public Criteria andIssueobjectIsNull() {
            addCriterion("issueObject is null");
            return (Criteria) this;
        }

        public Criteria andIssueobjectIsNotNull() {
            addCriterion("issueObject is not null");
            return (Criteria) this;
        }

        public Criteria andIssueobjectEqualTo(String value) {
            addCriterion("issueObject =", value, "issueobject");
            return (Criteria) this;
        }

        public Criteria andIssueobjectNotEqualTo(String value) {
            addCriterion("issueObject <>", value, "issueobject");
            return (Criteria) this;
        }

        public Criteria andIssueobjectGreaterThan(String value) {
            addCriterion("issueObject >", value, "issueobject");
            return (Criteria) this;
        }

        public Criteria andIssueobjectGreaterThanOrEqualTo(String value) {
            addCriterion("issueObject >=", value, "issueobject");
            return (Criteria) this;
        }

        public Criteria andIssueobjectLessThan(String value) {
            addCriterion("issueObject <", value, "issueobject");
            return (Criteria) this;
        }

        public Criteria andIssueobjectLessThanOrEqualTo(String value) {
            addCriterion("issueObject <=", value, "issueobject");
            return (Criteria) this;
        }

        public Criteria andIssueobjectLike(String value) {
            addCriterion("issueObject like", value, "issueobject");
            return (Criteria) this;
        }

        public Criteria andIssueobjectNotLike(String value) {
            addCriterion("issueObject not like", value, "issueobject");
            return (Criteria) this;
        }

        public Criteria andIssueobjectIn(List<String> values) {
            addCriterion("issueObject in", values, "issueobject");
            return (Criteria) this;
        }

        public Criteria andIssueobjectNotIn(List<String> values) {
            addCriterion("issueObject not in", values, "issueobject");
            return (Criteria) this;
        }

        public Criteria andIssueobjectBetween(String value1, String value2) {
            addCriterion("issueObject between", value1, value2, "issueobject");
            return (Criteria) this;
        }

        public Criteria andIssueobjectNotBetween(String value1, String value2) {
            addCriterion("issueObject not between", value1, value2, "issueobject");
            return (Criteria) this;
        }

        public Criteria andIssueurlIsNull() {
            addCriterion("issueUrl is null");
            return (Criteria) this;
        }

        public Criteria andIssueurlIsNotNull() {
            addCriterion("issueUrl is not null");
            return (Criteria) this;
        }

        public Criteria andIssueurlEqualTo(String value) {
            addCriterion("issueUrl =", value, "issueurl");
            return (Criteria) this;
        }

        public Criteria andIssueurlNotEqualTo(String value) {
            addCriterion("issueUrl <>", value, "issueurl");
            return (Criteria) this;
        }

        public Criteria andIssueurlGreaterThan(String value) {
            addCriterion("issueUrl >", value, "issueurl");
            return (Criteria) this;
        }

        public Criteria andIssueurlGreaterThanOrEqualTo(String value) {
            addCriterion("issueUrl >=", value, "issueurl");
            return (Criteria) this;
        }

        public Criteria andIssueurlLessThan(String value) {
            addCriterion("issueUrl <", value, "issueurl");
            return (Criteria) this;
        }

        public Criteria andIssueurlLessThanOrEqualTo(String value) {
            addCriterion("issueUrl <=", value, "issueurl");
            return (Criteria) this;
        }

        public Criteria andIssueurlLike(String value) {
            addCriterion("issueUrl like", value, "issueurl");
            return (Criteria) this;
        }

        public Criteria andIssueurlNotLike(String value) {
            addCriterion("issueUrl not like", value, "issueurl");
            return (Criteria) this;
        }

        public Criteria andIssueurlIn(List<String> values) {
            addCriterion("issueUrl in", values, "issueurl");
            return (Criteria) this;
        }

        public Criteria andIssueurlNotIn(List<String> values) {
            addCriterion("issueUrl not in", values, "issueurl");
            return (Criteria) this;
        }

        public Criteria andIssueurlBetween(String value1, String value2) {
            addCriterion("issueUrl between", value1, value2, "issueurl");
            return (Criteria) this;
        }

        public Criteria andIssueurlNotBetween(String value1, String value2) {
            addCriterion("issueUrl not between", value1, value2, "issueurl");
            return (Criteria) this;
        }

        public Criteria andIssuetextIsNull() {
            addCriterion("issueText is null");
            return (Criteria) this;
        }

        public Criteria andIssuetextIsNotNull() {
            addCriterion("issueText is not null");
            return (Criteria) this;
        }

        public Criteria andIssuetextEqualTo(String value) {
            addCriterion("issueText =", value, "issuetext");
            return (Criteria) this;
        }

        public Criteria andIssuetextNotEqualTo(String value) {
            addCriterion("issueText <>", value, "issuetext");
            return (Criteria) this;
        }

        public Criteria andIssuetextGreaterThan(String value) {
            addCriterion("issueText >", value, "issuetext");
            return (Criteria) this;
        }

        public Criteria andIssuetextGreaterThanOrEqualTo(String value) {
            addCriterion("issueText >=", value, "issuetext");
            return (Criteria) this;
        }

        public Criteria andIssuetextLessThan(String value) {
            addCriterion("issueText <", value, "issuetext");
            return (Criteria) this;
        }

        public Criteria andIssuetextLessThanOrEqualTo(String value) {
            addCriterion("issueText <=", value, "issuetext");
            return (Criteria) this;
        }

        public Criteria andIssuetextLike(String value) {
            addCriterion("issueText like", value, "issuetext");
            return (Criteria) this;
        }

        public Criteria andIssuetextNotLike(String value) {
            addCriterion("issueText not like", value, "issuetext");
            return (Criteria) this;
        }

        public Criteria andIssuetextIn(List<String> values) {
            addCriterion("issueText in", values, "issuetext");
            return (Criteria) this;
        }

        public Criteria andIssuetextNotIn(List<String> values) {
            addCriterion("issueText not in", values, "issuetext");
            return (Criteria) this;
        }

        public Criteria andIssuetextBetween(String value1, String value2) {
            addCriterion("issueText between", value1, value2, "issuetext");
            return (Criteria) this;
        }

        public Criteria andIssuetextNotBetween(String value1, String value2) {
            addCriterion("issueText not between", value1, value2, "issuetext");
            return (Criteria) this;
        }

        public Criteria andIssuepersonidIsNull() {
            addCriterion("issuePersonId is null");
            return (Criteria) this;
        }

        public Criteria andIssuepersonidIsNotNull() {
            addCriterion("issuePersonId is not null");
            return (Criteria) this;
        }

        public Criteria andIssuepersonidEqualTo(String value) {
            addCriterion("issuePersonId =", value, "issuepersonid");
            return (Criteria) this;
        }

        public Criteria andIssuepersonidNotEqualTo(String value) {
            addCriterion("issuePersonId <>", value, "issuepersonid");
            return (Criteria) this;
        }

        public Criteria andIssuepersonidGreaterThan(String value) {
            addCriterion("issuePersonId >", value, "issuepersonid");
            return (Criteria) this;
        }

        public Criteria andIssuepersonidGreaterThanOrEqualTo(String value) {
            addCriterion("issuePersonId >=", value, "issuepersonid");
            return (Criteria) this;
        }

        public Criteria andIssuepersonidLessThan(String value) {
            addCriterion("issuePersonId <", value, "issuepersonid");
            return (Criteria) this;
        }

        public Criteria andIssuepersonidLessThanOrEqualTo(String value) {
            addCriterion("issuePersonId <=", value, "issuepersonid");
            return (Criteria) this;
        }

        public Criteria andIssuepersonidLike(String value) {
            addCriterion("issuePersonId like", value, "issuepersonid");
            return (Criteria) this;
        }

        public Criteria andIssuepersonidNotLike(String value) {
            addCriterion("issuePersonId not like", value, "issuepersonid");
            return (Criteria) this;
        }

        public Criteria andIssuepersonidIn(List<String> values) {
            addCriterion("issuePersonId in", values, "issuepersonid");
            return (Criteria) this;
        }

        public Criteria andIssuepersonidNotIn(List<String> values) {
            addCriterion("issuePersonId not in", values, "issuepersonid");
            return (Criteria) this;
        }

        public Criteria andIssuepersonidBetween(String value1, String value2) {
            addCriterion("issuePersonId between", value1, value2, "issuepersonid");
            return (Criteria) this;
        }

        public Criteria andIssuepersonidNotBetween(String value1, String value2) {
            addCriterion("issuePersonId not between", value1, value2, "issuepersonid");
            return (Criteria) this;
        }

        public Criteria andIssuetimeIsNull() {
            addCriterion("issueTime is null");
            return (Criteria) this;
        }

        public Criteria andIssuetimeIsNotNull() {
            addCriterion("issueTime is not null");
            return (Criteria) this;
        }

        public Criteria andIssuetimeEqualTo(String value) {
            addCriterion("issueTime =", value, "issuetime");
            return (Criteria) this;
        }

        public Criteria andIssuetimeNotEqualTo(String value) {
            addCriterion("issueTime <>", value, "issuetime");
            return (Criteria) this;
        }

        public Criteria andIssuetimeGreaterThan(String value) {
            addCriterion("issueTime >", value, "issuetime");
            return (Criteria) this;
        }

        public Criteria andIssuetimeGreaterThanOrEqualTo(String value) {
            addCriterion("issueTime >=", value, "issuetime");
            return (Criteria) this;
        }

        public Criteria andIssuetimeLessThan(String value) {
            addCriterion("issueTime <", value, "issuetime");
            return (Criteria) this;
        }

        public Criteria andIssuetimeLessThanOrEqualTo(String value) {
            addCriterion("issueTime <=", value, "issuetime");
            return (Criteria) this;
        }

        public Criteria andIssuetimeLike(String value) {
            addCriterion("issueTime like", value, "issuetime");
            return (Criteria) this;
        }

        public Criteria andIssuetimeNotLike(String value) {
            addCriterion("issueTime not like", value, "issuetime");
            return (Criteria) this;
        }

        public Criteria andIssuetimeIn(List<String> values) {
            addCriterion("issueTime in", values, "issuetime");
            return (Criteria) this;
        }

        public Criteria andIssuetimeNotIn(List<String> values) {
            addCriterion("issueTime not in", values, "issuetime");
            return (Criteria) this;
        }

        public Criteria andIssuetimeBetween(String value1, String value2) {
            addCriterion("issueTime between", value1, value2, "issuetime");
            return (Criteria) this;
        }

        public Criteria andIssuetimeNotBetween(String value1, String value2) {
            addCriterion("issueTime not between", value1, value2, "issuetime");
            return (Criteria) this;
        }

        public Criteria andIssueobjectidIsNull() {
            addCriterion("issueObjectId is null");
            return (Criteria) this;
        }

        public Criteria andIssueobjectidIsNotNull() {
            addCriterion("issueObjectId is not null");
            return (Criteria) this;
        }

        public Criteria andIssueobjectidEqualTo(String value) {
            addCriterion("issueObjectId =", value, "issueobjectid");
            return (Criteria) this;
        }

        public Criteria andIssueobjectidNotEqualTo(String value) {
            addCriterion("issueObjectId <>", value, "issueobjectid");
            return (Criteria) this;
        }

        public Criteria andIssueobjectidGreaterThan(String value) {
            addCriterion("issueObjectId >", value, "issueobjectid");
            return (Criteria) this;
        }

        public Criteria andIssueobjectidGreaterThanOrEqualTo(String value) {
            addCriterion("issueObjectId >=", value, "issueobjectid");
            return (Criteria) this;
        }

        public Criteria andIssueobjectidLessThan(String value) {
            addCriterion("issueObjectId <", value, "issueobjectid");
            return (Criteria) this;
        }

        public Criteria andIssueobjectidLessThanOrEqualTo(String value) {
            addCriterion("issueObjectId <=", value, "issueobjectid");
            return (Criteria) this;
        }

        public Criteria andIssueobjectidLike(String value) {
            addCriterion("issueObjectId like", value, "issueobjectid");
            return (Criteria) this;
        }

        public Criteria andIssueobjectidNotLike(String value) {
            addCriterion("issueObjectId not like", value, "issueobjectid");
            return (Criteria) this;
        }

        public Criteria andIssueobjectidIn(List<String> values) {
            addCriterion("issueObjectId in", values, "issueobjectid");
            return (Criteria) this;
        }

        public Criteria andIssueobjectidNotIn(List<String> values) {
            addCriterion("issueObjectId not in", values, "issueobjectid");
            return (Criteria) this;
        }

        public Criteria andIssueobjectidBetween(String value1, String value2) {
            addCriterion("issueObjectId between", value1, value2, "issueobjectid");
            return (Criteria) this;
        }

        public Criteria andIssueobjectidNotBetween(String value1, String value2) {
            addCriterion("issueObjectId not between", value1, value2, "issueobjectid");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}